package com.teach;

//静态导入 jdk1.8+
import static java.lang.Math.*;
import static java.lang.Math.abs;
import static java.lang.Math.PI;
/**
 * <pre>
 * - Math
 * Author : J.L.Zhou
 * E-Mail : 2233875735@qq.com
 * Tel : 151 1104 7708
 * Date : 2021-04-13 13:52
 * Version : 1.0
 * Copyright 2021 jlzhou.top Inc. All rights reserved.
 * Warning: this content is only for internal circulation of the company.
 *          It is forbidden to divulge it or use it for other commercial purposes.
 * </pre>
 **/
public class Demo02 {
  public static void main(String[] args) {
    System.out.println(Math.abs(-1));//1
    System.out.println(abs(1));//1
    System.out.println(pow(2,0));
    System.out.println(pow(2,2));
    System.out.println(round(1.4));//1
    System.out.println(round(1.5));//2
    System.out.println(floor(1.0));//1
    System.out.println(floor(1.001));//1
    System.out.println(floor(1.9999));//1
    System.out.println(ceil(1.0));//1
    System.out.println(ceil(1.0001));//2
    System.out.println(ceil(1.9999));//2
    System.out.println(max(1,2));//2
    System.out.println(min(1,2));//1
    System.out.println(random());//0<=n<1
    System.out.println(PI);//3.141592653589793
    System.out.println(E);//2.718281828459045
  }
}
